/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.asseco.mio.core.model;

import java.util.Date;
import javax.persistence.*;
import org.appfuse.model.BaseObject;
import org.hibernate.annotations.GenericGenerator;

/**
 *
 * @author konstantin.sivakov
 */
@Entity
@Table(name = "AUDIT_LOG")
public class AuditLog extends BaseObject {

    private String id;
    private String user;
    private String controllerName;
    private String actionType;
    private String info1;
    private String info2;
    private String info3;
    private Date dateCreated;

    public AuditLog() {
    }

    public AuditLog(String user, String controllerName, String actionType, String info1, String info2,String info3,Date dateCreated) {
        this.user = user;
        this.controllerName = controllerName;
        this.actionType = actionType;
        this.info1 = info1;
        this.info2 = info2;
        this.info3 = info3;
        this.dateCreated = dateCreated;
    }

    // START SNIPPET: id
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(length = 40)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    // END SNIPET: id

    @Column(name = "ACTION_TYPE", length = 2048)
    public String getActionType() {
        return actionType;
    }

    public void setActionType(String actionType) {
        this.actionType = actionType;
    }

    @Column(name = "CONTROLLER_NAME", length = 255)
    public String getControllerName() {
        return controllerName;
    }

    public void setControllerName(String controllerName) {
        this.controllerName = controllerName;
    }

    @Column(name = "DATE_CREATED")
    @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    @Column(name = "INFO1", length = 2048)
    public String getInfo1() {
        return info1;
    }

    public void setInfo1(String info1) {
        this.info1 = info1;
    }

    @Column(name = "INFO2", length = 2048)
    public String getInfo2() {
        return info2;
    }

    public void setInfo2(String info2) {
        this.info2 = info2;
    }

    @Column(name = "INFO3", length = 2048)
    public String getInfo3() {
        return info3;
    }

    public void setInfo3(String info3) {
        this.info3 = info3;
    }

    @Column(name = "USER", length = 50)
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Override
    public String toString() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean equals(Object o) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public int hashCode() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
